using System;
using System.Data.Entity;
using System.Linq;

namespace ClassLibrary1
{
    public partial class Model1 : DbContext
    {
        public Model1()
            : base("name=Model1")
        {
        }

        public virtual DbSet<gooddetailshtml> gooddetailshtmls { get; set; }
        public virtual DbSet<good> goods { get; set; }
        public virtual DbSet<goodsimagelist> goodsimagelists { get; set; }
        public virtual DbSet<goodstype> goodstypes { get; set; }
        public virtual DbSet<homeinfo> homeinfoes { get; set; }
        public virtual DbSet<logoinfo> logoinfoes { get; set; }
        public virtual DbSet<menu> menus { get; set; }
        public virtual DbSet<order> orders { get; set; }
        public virtual DbSet<ordergood> ordergoods { get; set; }
        public virtual DbSet<role> roles { get; set; }
        public virtual DbSet<rolemenu> rolemenus { get; set; }
        public virtual DbSet<shopuser> shopusers { get; set; }
        public virtual DbSet<shopusertoken> shopusertokens { get; set; }
        public virtual DbSet<user> users { get; set; }
        public virtual DbSet<userrole> userroles { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<gooddetailshtml>()
                .Property(e => e.goodhtml)
                .IsUnicode(false);

            modelBuilder.Entity<good>()
                .Property(e => e.goodsn)
                .IsUnicode(false);

            modelBuilder.Entity<good>()
                .Property(e => e.name)
                .IsUnicode(false);

            modelBuilder.Entity<good>()
                .Property(e => e.masterpicurl)
                .IsUnicode(false);

            modelBuilder.Entity<good>()
                .Property(e => e.listpicurl)
                .IsUnicode(false);

            modelBuilder.Entity<good>()
                .Property(e => e.createuser)
                .IsUnicode(false);

            modelBuilder.Entity<good>()
                .Property(e => e.updateuser)
                .IsUnicode(false);

            modelBuilder.Entity<goodsimagelist>()
                .Property(e => e.imagelisturl)
                .IsUnicode(false);

            modelBuilder.Entity<goodstype>()
                .Property(e => e.name)
                .IsUnicode(false);

            modelBuilder.Entity<goodstype>()
                .Property(e => e.imageurl)
                .IsUnicode(false);

            modelBuilder.Entity<goodstype>()
                .Property(e => e.level)
                .IsUnicode(false);

            modelBuilder.Entity<goodstype>()
                .Property(e => e.createuser)
                .IsUnicode(false);

            modelBuilder.Entity<goodstype>()
                .Property(e => e.updateuser)
                .IsUnicode(false);

            modelBuilder.Entity<homeinfo>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<homeinfo>()
                .Property(e => e.href)
                .IsUnicode(false);

            modelBuilder.Entity<logoinfo>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<logoinfo>()
                .Property(e => e.image)
                .IsUnicode(false);

            modelBuilder.Entity<logoinfo>()
                .Property(e => e.href)
                .IsUnicode(false);

            modelBuilder.Entity<menu>()
                .Property(e => e.title)
                .IsUnicode(false);

            modelBuilder.Entity<menu>()
                .Property(e => e.href)
                .IsUnicode(false);

            modelBuilder.Entity<menu>()
                .Property(e => e.icon)
                .IsUnicode(false);

            modelBuilder.Entity<menu>()
                .Property(e => e.CreateUser)
                .IsUnicode(false);

            modelBuilder.Entity<menu>()
                .Property(e => e.UpdateUser)
                .IsUnicode(false);

            modelBuilder.Entity<menu>()
                .Property(e => e.authcode)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.ordersn)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.consignee)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.province)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.city)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.district)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.address)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.mobile)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.expresssn)
                .IsUnicode(false);

            modelBuilder.Entity<order>()
                .Property(e => e.expressname)
                .IsUnicode(false);

            modelBuilder.Entity<role>()
                .Property(e => e.Name)
                .IsUnicode(false);

            modelBuilder.Entity<role>()
                .Property(e => e.CreateUser)
                .IsUnicode(false);

            modelBuilder.Entity<role>()
                .Property(e => e.UpdateUser)
                .IsUnicode(false);

            modelBuilder.Entity<role>()
                .Property(e => e.menus)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.username)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.password)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.lastloginip)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.nickname)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.mobile)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.registerip)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.city)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.avatarUrl)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.openid)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.language)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.province)
                .IsUnicode(false);

            modelBuilder.Entity<shopuser>()
                .Property(e => e.country)
                .IsUnicode(false);

            modelBuilder.Entity<shopusertoken>()
                .Property(e => e.token)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.LoginName)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.Password)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.UserName)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.Phone)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.Address)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.CreateUser)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.UpdateUser)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.roles)
                .IsUnicode(false);

            modelBuilder.Entity<user>()
                .Property(e => e.email)
                .IsUnicode(false);
        }
    }
}
